﻿//
// Created: 2018/9/27
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;

namespace Model.WXshopBuiness.Map
{
    internal  class OrderChangeHistoryMap:EntityTypeConfiguration< OrderChangeHistory >    
    {
        public OrderChangeHistoryMap()
        {
             this.ToTable("OrderChangeHistory");
             this.HasKey(i => new { i.ID });
             this.Property(i => i.ID).HasColumnName("ID");                     
             this.Property(i => i.OrderId).HasColumnName("OrderId");                     
             this.Property(i => i.StateBefore).HasColumnName("StateBefore");                     
             this.Property(i => i.StateAfter).HasColumnName("StateAfter");                     
             this.Property(i => i.Remarks).HasColumnName("Remarks");                     
             this.Property(i => i.CreateTime).HasColumnName("CreateTime");                     
             this.Property(i => i.OrderMoney).HasColumnName("OrderMoney");                     
        }   
    }
    
     public static class OrderChangeHistoryMapExtensions
    {
        public static void UserOrderChangeHistoryMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new OrderChangeHistoryMap());
        }
    }
}